package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 角色对象 roles
 * 
 * @author ruoyi
 * @date 2025-07-03
 */
public class Roles extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 角色ID（主键） */
    private Long id;

    /** 角色名称（如管理员、普通用户） */
    @Excel(name = "角色名称", readConverterExp = "如=管理员、普通用户")
    private String names;

    /** 角色描述 */
    @Excel(name = "角色描述")
    private String description;

    /** 逻辑删除（0-未删除，1-已删除） */
    @Excel(name = "逻辑删除", readConverterExp = "0=-未删除，1-已删除")
    private Long isDeleted;

    /** 关联字段 */
    @Excel(name = "关联字段")
    private Long userId;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setNames(String names) 
    {
        this.names = names;
    }

    public String getNames() 
    {
        return names;
    }
    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }
    public void setIsDeleted(Long isDeleted) 
    {
        this.isDeleted = isDeleted;
    }

    public Long getIsDeleted() 
    {
        return isDeleted;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("names", getNames())
            .append("description", getDescription())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("isDeleted", getIsDeleted())
            .append("userId", getUserId())
            .toString();
    }
}
